package com.example.tongue.ui.Online.Body.utils;

public class BIMcalculate {
    private double BIM;
    public BIMcalculate(double BIM) {
        this.BIM=BIM;
    }
    public String BIMresult(){
        String ThreeValid= String.format("%.3f",this.BIM);
        if(BIM<15){
            return ThreeValid+"  严重偏瘦";
        }else {
            if(BIM>=15&&BIM<18.5){
                return ThreeValid+"  偏瘦 ";
            }else {
                if(BIM>=18.5&&BIM<25){
                    return ThreeValid+"  标准";
                }else {
                    if(BIM>=25&&BIM<30)
                    {return ThreeValid+"  超重";
                    }else {
                        return ThreeValid+"  肥胖";
                    }
                }
            }
        }
    }
}
